Skip to content

Conversation

@gregnr
Copy link
Member

@gregnr gregnr commented Oct 9, 2025

This updates the pretty printed output from supabase start and supabase status to be a bit more user friendly, especially for newcomers. Specifically:

  • Groups info into tables by category (dev tools, apis, database, auth keys, s3)
  • Colorizes value based on type (link, key, text)
  • Adds API URLs for REST and Edge Functions

Implementation-wise I tried a few different table renderers (including manual), but tablewriter ended up being the most straightforward and least buggy.

image

Testing

  1. Clone this branch feat/pretty-print-output.
  2. Run go run . start - observe the new output.
  3. Also run go run . status to see the same output.

@gregnr gregnr requested a review from a team as a code owner October 9, 2025 15:28
@gregnr gregnr force-pushed the feat/pretty-print-output branch from 320c852 to ec80910 Compare October 9, 2025 15:56
@coveralls
Copy link

coveralls commented Oct 9, 2025

Pull Request Test Coverage Report for Build 19694860430

Details

  • 92 of 102 (90.2%) changed or added relevant lines in 2 files are covered.
  • 8 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.1%) to 55.536%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/status/status.go 89 99 89.9%
Files with Coverage Reduction New Missed Lines %
internal/status/status.go 3 77.41%
internal/gen/keys/keys.go 5 12.9%
Totals Coverage Status
Change from base Build 19692043920: 0.1%
Covered Lines: 6721
Relevant Lines: 12102

💛 - Coveralls

@gregnr gregnr force-pushed the feat/pretty-print-output branch from 9dcaefb to 6f6c541 Compare October 9, 2025 20:56
@gregnr gregnr force-pushed the feat/pretty-print-output branch from 6f6c541 to 3b1adbd Compare October 9, 2025 22:55
@sweatybridge sweatybridge changed the title feat: grouped pretty print status output fix: grouped pretty print status output Nov 27, 2025
@sweatybridge sweatybridge merged commit 072abe8 into develop Nov 27, 2025
14 checks passed
@sweatybridge sweatybridge deleted the feat/pretty-print-output branch November 27, 2025 10:00
@A-F-V
Copy link

A-F-V commented Dec 8, 2025

Is there a way to get the old rendering of info? This makes parsing much much harder....
Documentation is now out of date: https://supabase.com/docs/reference/cli/supabase-status

@gregnr
Copy link
Member Author

gregnr commented Dec 8, 2025

Hey @A-F-V, thanks for the heads up on docs, we'll update this.

If you need to parse the info programmatically, you can use the --output (-o) flag to output the info as env vars, JSON, TOML, or YAML:

supabase status -o env
$ supabase status --help
Show status of local Supabase containers

Usage:
  supabase status [flags]

Examples:
  supabase status -o env --override-name api.url=NEXT_PUBLIC_SUPABASE_URL
  supabase status -o json

Flags:
  -h, --help                    help for status
      --override-name strings   Override specific variable names.

Global Flags:
      --create-ticket                                  create a support ticket for any CLI error
      --debug                                          output debug logs to stderr
      --dns-resolver [ native | https ]                lookup domain names using the specified resolver (default native)
      --experimental                                   enable experimental features
      --network-id string                              use the specified docker network instead of a generated one
  -o, --output [ env | pretty | json | toml | yaml ]   output format of status variables (default pretty)
      --profile string                                 use a specific profile for connecting to Supabase API (default "supabase")
      --workdir string                                 path to a Supabase project directory
      --yes                                            answer yes to all prompts

Let me know if this works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants